<template>
  <router-view />
</template>
<script lang="ts" setup>
import { Wap, User } from "../../common/wap";
import { useRouter } from "vue-router";

//用户登录信息
const router = useRouter();

(() => {
  new User({
    onData() {
      let isLogin = this.isLogin;
      if (!isLogin) {
        Wap.delayTodo(() => {
          router.push('/');
        });
      }
    },
  })
})();
</script>
